const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
   // 入口
    entry: {
        app: ''
    },
    output: {
        path:'',
        filename: ''
    },
    resolve: {
        extensions: ['.js','.jsx','.ts','.json','.tsx'],
        alias: {
            '@':''
        }
    },
    module: {
        rules: [
            {
                test: /\.(ts|js|tsx|jsx)$/,
                exclude:/node_modules/,
                loader: 'babel-loader'
            }, 
            {
                test: /\.(c|le)ss$/,
                loader: ['']
            }
        ]
    },
    plugins:{
        new HtmlWebpackPlugin({
            template: ''
        })
    },
    mode: '',
    devtools: '',
    devServer: {
        proxy: {
            '/api': {
                target: '',
                changeOrigin: true,
                pathRewrite: {

                }
            }
        },
        hot: true,
        compress: true,
        historyApiFallback: true,
        host: '127.0.0.1',
        port: 8888,
        open: true
    }
}